package jp.eisbahn.mgapi.api;

import org.json.simple.JSONObject;

/**
 * This class represents a user model.
 * @author Yoichiro Tanaka
 */
public class User extends Model {

    /**
     * Initialize this instance.
     * @param newOriginal The JSON object.
     */
    public User(final JSONObject newOriginal) {
        super(newOriginal);
    }

    /**
     * Retrieve ID.
     * @return The ID string.
     */
    public final String getId() {
        return getPropertyString("id");
    }

    /**
     * Retrieve the displayName value.
     * @return The displayName string.
     */
    public final String getDisplayName() {
        return getPropertyString("displayName");
    }

    /**
     * Retrieve the profile URL.
     * @return The profile URL string.
     */
    public final String getProfileUrl() {
        return getPropertyString("profileUrl");
    }

    /**
     * Retrieve the profile image URL.
     * @return The profile image URL string.
     */
    public final String getThumbnailUrl() {
        return getPropertyString("thumbnailUrl");
    }

}
